<include file="public@header"/>
<style>
.cdnhide{
	display:none;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">登录设置</a></li>
        <li><a href="#B" data-toggle="tab">支付设置</a></li>
        <li><a href="#C" data-toggle="tab">提现设置</a></li>
        <li><a href="#D" data-toggle="tab">IM设置</a></li>
        <li><a href="#E" data-toggle="tab">直播设置</a></li>
<!--        <li><a href="#F" data-toggle="tab">匹配设置</a></li>-->
        <li><a href="#G" data-toggle="tab">邀请设置</a></li>
        <li><a href="#H" data-toggle="tab">私信设置</a></li>
		<li><a href="#J" data-toggle="tab">推荐设置</a></li>
		<li><a href="#I" data-toggle="tab">云存储设置</a></li>
        <li><a href="#K" data-toggle="tab">敏感词设置</a></li>
        <li><a href="#L" data-toggle="tab">公会设置</a></li>
<!--        <li><a href="#M" data-toggle="tab">openinstall设置</a></li>-->
		<li><a href="#N" data-toggle="tab">鉴黄拉黑设置(腾讯云)</a></li>
        <li><a href="#O" data-toggle="tab">任务中心</a></li>
        <li><a href="#P" data-toggle="tab">打招呼设置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/configpriPost')}" method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">

	                    <div class="form-group">
		                    <label for="input-bonus_switch" class="col-sm-2 control-label">登录奖励开关</label>
		                    <div class="col-md-6 col-sm-10">
			                    <select class="form-control w-80" name="options[bonus_switch]">
				                    <option value="0">关闭</option>
				                    <option value="1" <eq name="config['bonus_switch']" value="1">selected</eq>>开启</option>
			                    </select>
		                    </div>
	                    </div>

						<div class="form-group">
                            <label for="input-reg_reward" class="col-sm-2 control-label">注册奖励</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-reg_reward"
                                       name="options[reg_reward]" value="{$config.reg_reward|default='0'}">
                                       <p class="help-block">新用户注册奖励钻石（整数）</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-service_switch" class="col-sm-2 control-label">客服</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[service_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['service_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-service_url" class="col-sm-2 control-label">客服链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-service_url"
                                       name="options[service_url]" value="{$config.service_url|default=''}">
                                       <p class="help-block">注册链接：http://www.53kf.com/reg/index?yx_from=210260</p>
                            </div>
                        </div>
					
					    <div class="form-group">
                            <label for="input-login_qq_appid" class="col-sm-2 control-label">QQ互联移动应用APPID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_qq_appid" name="options[login_qq_appid]" value="{$config['login_qq_appid']|default=''}">
                                <p class="help-block">QQ互联==》应用管理==》移动应用==》APPID</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">分享方式</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
									$share_twitter='twitter';
									$share_facebook='facebook';
                                    $share_telegram = 'Telegram';
                                    $share_whatsapp = 'Whatsapp';
								</php>
								<label class="checkbox-inline"><input type="checkbox" value="twitter" name="share_type[]" <in value="$config['share_type']" name="share_telegram">checked="checked"</in>>Telegram</label>
								<label class="checkbox-inline"><input type="checkbox" value="facebook" name="share_type[]" <in value="$config['share_type']" name="share_facebook">checked="checked"</in>>Facebook</label>
                                <label class="checkbox-inline"><input type="checkbox" value="facebook" name="share_type[]" <in value="$config['share_type']" name="share_whatsapp">checked="checked"</in>>Whatsapp</label>

                            </div>
                        </div>


                        <!-- <div class="form-group">
                            <label for="input-ihuyi_account" class="col-sm-2 control-label">互亿无线APIID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ihuyi_account" name="options[ihuyi_account]" value="{$config['ihuyi_account']|default=''}"> 短信验证码   http://www.ihuyi.com/  互亿无线后台-》验证码、短信通知-》账号及签名->APIID
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-ihuyi_ps" class="col-sm-2 control-label">互亿无线key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ihuyi_ps" name="options[ihuyi_ps]" value="{$config['ihuyi_ps']|default=''}">  短信验证码 互亿无线后台-》验证码、短信通知-》账号及签名->APIKEY
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-ccp_sid" class="col-sm-2 control-label">容联云ACCOUNT SID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_sid" name="options[ccp_sid]" value="{$config['ccp_sid']|default=''}">  短信验证码 
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_token" class="col-sm-2 control-label">容联云AUTH TOKEN</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_token" name="options[ccp_token]" value="{$config['ccp_token']|default=''}">  短信验证码 
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_appid" class="col-sm-2 control-label">容联云应用APPID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_appid" name="options[ccp_appid]" value="{$config['ccp_appid']|default=''}">  短信验证码 
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_tempid" class="col-sm-2 control-label">容联云短信模板ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_tempid" name="options[ccp_tempid]" value="{$config['ccp_tempid']|default=''}">  短信验证码 
                            </div>
                        </div> -->
						
						<div class="form-group">
                            <label for="input-code_switch" class="col-sm-2 control-label">短信接口平台</label>
                            <div class="col-md-6 col-sm-10" id="cdn">
                                <label class="radio-inline"><input type="radio" value="1" name="options[code_switch]" <in value="1" name="config['code_switch']">checked="checked"</in>>阿里云</label>
                                <label class="radio-inline"><input type="radio" value="2" name="options[code_switch]" <in value="2" name="config['code_switch']">checked="checked"</in>>腾讯云</label>
                               
                            </div>
                        </div>
						
						<div class="form-group">
							<label for="input-sendcode_type" class="col-sm-2 control-label">短信类型</label>
							<div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[sendcode_type]">
									<option value="1">国内</option>
									<option value="2" <eq name="config['sendcode_type']" value="2">selected</eq>>国际/港澳台</option>
								</select>
								<p class="help-block">短信消息类型：国内、国际/港澳台</p>
							</div>
						</div>
						<div class="cdn_bd <neq name='config.code_switch' value='1'>cdnhide</neq>" id="code_switch_1">
							<div class="form-group">
								<label for="input-aly_keydi" class="col-sm-2 control-label">阿里云AccessKey ID</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_keydi" name="options[aly_keydi]" value="{$config['aly_keydi']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 AccessKey ID</p>
								</div>
							</div>
							

							<div class="form-group">							
								<label for="input-aly_secret" class="col-sm-2 control-label">阿里云AccessKey Secret</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_secret" name="options[aly_secret]" value="{$config['aly_secret']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 AccessKey Secret</p>
								</div>
							</div>
							

							<div class="form-group">
								<label for="input-aly_signName" class="col-sm-2 control-label">国内短信签名</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_signName" name="options[aly_signName]" value="{$config['aly_signName']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 短信签名（区分国内、国际/港澳台）</p>
								</div>
							</div>

							<div class="form-group">							
								<label for="input-aly_templateCode" class="col-sm-2 control-label">国内短信模板ID</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_templateCode" name="options[aly_templateCode]" value="{$config['aly_templateCode']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 短信模板ID （区分国内、国际/港澳台）</p> 
								</div>
							</div>
							
							<div class="form-group">
								<label for="input-aly_signName_inter" class="col-sm-2 control-label">国际/港澳台短信签名</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_signName_inter" name="options[aly_signName_inter]" value="{$config['aly_signName_inter']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 短信签名（区分国内、国际/港澳台）</p>
								</div>
							</div>

							<div class="form-group">							
								<label for="input-aly_templateCode_inter" class="col-sm-2 control-label">国际/港澳台短信模板ID</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aly_templateCode_inter" name="options[aly_templateCode_inter]" value="{$config['aly_templateCode_inter']|default=''}">  
                                    <p class="help-block">阿里云控制台==》云通信-》短信服务==》 短信模板ID （区分国内、国际/港澳台）</p>
								</div>
							</div>
						
						</div>
						
						
						 <div class="cdn_bd <neq name='config.code_switch' value='2'>cdnhide</neq>" id="code_switch_2">
                            <div class="form-group">
                                <label for="input-tencent_sms_appid" class="col-sm-2 control-label">腾讯云短信SMS-AppID</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_appid" name="options[tencent_sms_appid]" value="{$config['tencent_sms_appid']|default=''}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-tencent_sms_appkey" class="col-sm-2 control-label">腾讯云短信SMS-AppKey</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_appkey" name="options[tencent_sms_appkey]" value="{$config['tencent_sms_appkey']|default=''}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-tencent_sms_signName" class="col-sm-2 control-label">腾讯云短信国内签名</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_signName" name="options[tencent_sms_signName]" value="{$config['tencent_sms_signName']|default=''}">  
                                    <p class="help-block">腾讯云控制台==》短信-》国内短信==》 签名管理</p>
                                </div>
                            </div>

                            <div class="form-group">                            
                                <label for="input-tencent_sms_templateCode" class="col-sm-2 control-label">腾讯云国内短信模板ID</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_templateCode" name="options[tencent_sms_templateCode]" value="{$config['tencent_sms_templateCode']|default=''}">  
                                    <p class="help-block">腾讯云控制台==》短信-》国内短信==》 正文模板管理</p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-tencent_sms_hw_signName" class="col-sm-2 control-label">腾讯云短信国外签名</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_hw_signName" name="options[tencent_sms_hw_signName]" value="{$config['tencent_sms_hw_signName']|default=''}">  
                                    <p class="help-block">腾讯云控制台==》短信-》国际/港澳台短信==》 签名管理</p>
                                </div>
                            </div>

                            <div class="form-group">                            
                                <label for="input-tencent_sms_hw_templateCode" class="col-sm-2 control-label">腾讯云国外短信模板ID</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-tencent_sms_hw_templateCode" name="options[tencent_sms_hw_templateCode]" value="{$config['tencent_sms_hw_templateCode']|default=''}">  
                                    <p class="help-block">腾讯云控制台==》短信-》国际/港澳台短信==》 正文模板管理</p>
                                </div>
                            </div>
                        
                        </div>
					
                        <div class="form-group">
                            <label for="input-sendcode_switch" class="col-sm-2 control-label">短信验证码开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[sendcode_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['sendcode_switch']" value="1">selected</eq>>开启</option>
                                </select>
                                <p class="help-block">短信验证码开关,关闭后不再发送真实验证码，采用默认验证码123456</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-iplimit_switch" class="col-sm-2 control-label">短信验证码IP限制开关</label>
                            <div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[iplimit_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['iplimit_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-iplimit_times" class="col-sm-2 control-label">短信验证码IP限制次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-iplimit_times" name="options[iplimit_times]" value="{$config['iplimit_times']|default=''}"> 
                                <p class="help-block">同一IP每天可以发送验证码的最大次数</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">
						
                        
                        <div class="form-group">
                            <label for="input-aliapp_partner" class="col-sm-2 control-label">支付宝合作者身份ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-aliapp_partner" name="options[aliapp_partner]" value="{$config['aliapp_partner']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-aliapp_seller_id" class="col-sm-2 control-label">支付宝帐号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-aliapp_seller_id" name="options[aliapp_seller_id]" value="{$config['aliapp_seller_id']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-aliapp_key" class="col-sm-2 control-label">支付宝开发者密钥</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-aliapp_key" name="options[aliapp_key]" >{$config.aliapp_key|default=''}</textarea> 
                                <p class="help-block">密钥使用PSCS8版本</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-aliapp_check" class="col-sm-2 control-label" style="font-weight: normal;padding-top: 0;">-------------------------------</label>
                            <div class="col-md-6 col-sm-10">
                                -------------------------------------------------------------------------------------------------------------------------------------
                            </div>
                        </div>
                        
                        
                        
                        <div class="form-group">
                            <label for="input-wx_appid" class="col-sm-2 control-label">微信开放平台移动应用AppID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_appid" name="options[wx_appid]" value="{$config['wx_appid']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_appsecret" class="col-sm-2 control-label">微信开放平台移动应用appsecret</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_appsecret" name="options[wx_appsecret]" value="{$config['wx_appsecret']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_mchid" class="col-sm-2 control-label">微信商户号mchid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_mchid" name="options[wx_mchid]" value="{$config['wx_mchid']|default=''}"> 
                                <p class="help-block">微信商户号mchid（微信开放平台移动应用 对应的微信商户 商户号mchid）</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_key" class="col-sm-2 control-label">微信密钥key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_key" name="options[wx_key]" value="{$config['wx_key']|default=''}"> 
                                <p class="help-block">微信密钥key（微信开放平台移动应用 对应的微信商户 密钥key）</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-aliapp_check" class="col-sm-2 control-label" style="font-weight: normal;padding-top: 0;">-------------------------------</label>
                            <div class="col-md-6 col-sm-10">
                                -------------------------------------------------------------------------------------------------------------------------------------
                            </div>
                        </div>
                        
                       
						<!-- <div class="form-group"> -->
                            <!-- <label for="input-paypal_sandbox" class="col-sm-2 control-label">APP-Paypal支付模式</label> -->
                            <!-- <div class="col-md-6 col-sm-10"> -->
								<!-- <select class="form-control" name="options[paypal_sandbox]"> -->
                                    <!-- <option value="0">沙盒</option> -->
                                    <!-- <option value="1" <eq name="config['paypal_sandbox']" value="1">selected</eq>>生产</option> -->
                                <!-- </select>  -->
                            <!-- </div> -->
                        <!-- </div> -->
						<!-- <div class="form-group"> -->
                            <!-- <label for="input-sandbox_clientid" class="col-sm-2 control-label">APP-PayPal-沙盒ClientID</label> -->
                            <!-- <div class="col-md-6 col-sm-10">								 -->
								<!-- <input type="text" class="form-control" id="input-sandbox_clientid" name="options[sandbox_clientid]" value="{$config['sandbox_clientid']|default=''}"> -->
                            <!-- </div> -->
                        <!-- </div> -->
						<!-- <div class="form-group"> -->
                            <!-- <label for="input-product_clientid" class="col-sm-2 control-label">APP-PayPal-生产ClientID</label> -->
                            <!-- <div class="col-md-6 col-sm-10"> -->
								<!-- <input type="text" class="form-control" id="input-product_clientid" name="options[product_clientid]" value="{$config['product_clientid']|default=''}"> -->
                            <!-- </div> -->
                        <!-- </div> -->
						
						
						<div class="form-group">
							<label for="input-paypal_pattern_braintree" class="col-sm-2 control-label">Braintree商户类型</label>
							<div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[paypal_pattern_braintree]">
									<option value="0">沙盒</option>
									<option value="1" <eq name="config['paypal_pattern_braintree']" value="1">selected</eq>>生产</option>
								</select>
								<p class="help-block">Braintree商户类型，测试使用沙盒</p>
							</div>
						</div>
						<div class="form-group">
							<label for="input-braintree_sandbox" class="col-sm-2 control-label">Braintree商户ID(沙盒)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_sandbox" name="options[braintree_sandbox]" value="{$config['braintree_sandbox']|default=''}">
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-braintree_public_sandbox" class="col-sm-2 control-label">Braintree公钥(沙盒)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_public_sandbox" name="options[braintree_public_sandbox]" value="{$config['braintree_public_sandbox']|default=''}">
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-braintree_private_sandbox" class="col-sm-2 control-label">Braintree私钥(沙盒)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_private_sandbox" name="options[braintree_private_sandbox]" value="{$config['braintree_private_sandbox']|default=''}">
							</div>
						</div>
						
						
						<div class="form-group">
							<label for="input-braintree_production" class="col-sm-2 control-label">Braintree商户ID(生产)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_production" name="options[braintree_production]" value="{$config['braintree_production']|default=''}">
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-braintree_public_production" class="col-sm-2 control-label">Braintree公钥(生产)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_public_production" name="options[braintree_public_production]" value="{$config['braintree_public_production']|default=''}">
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-braintree_private_production" class="col-sm-2 control-label">Braintree私钥(生产)</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-braintree_private_production" name="options[braintree_private_production]" value="{$config['braintree_private_production']|default=''}">
							</div>
						</div>

                        <div class="form-group">
                            <label for="input-aliapp_check" class="col-sm-2 control-label" style="font-weight: normal;padding-top: 0;">-------------------------------</label>
                            <div class="col-md-6 col-sm-10">
                                -------------------------------------------------------------------------------------------------------------------------------------
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-aliapp_switch_h5" class="col-sm-2 control-label">H5-支付宝开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[aliapp_switch_h5]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['aliapp_switch_h5']" value="1">selected</eq>>开启</option>
                                    
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-aliapp_switch" class="col-sm-2 control-label">APP-支付宝开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[aliapp_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['aliapp_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-wx_switch" class="col-sm-2 control-label">APP-微信开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[wx_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['wx_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>

                         <div class="form-group">
                            <label for="input-ios_switch" class="col-sm-2 control-label">APP-苹果开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[ios_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['ios_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        
                        
                        
                        <div class="form-group">
                            <label for="input-paypal_switch" class="col-sm-2 control-label">APP-Paypal开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[paypal_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['paypal_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="C">
                        <div class="form-group">
                            <label for="input-cash_rate" class="col-sm-2 control-label">提现比例</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_rate" name="options[cash_rate]" value="{$config['cash_rate']|default=''}"> 
                                <p class="help-block">提现一元人民币需要的票数</p>
                            </div>
                        </div>
						
						<div class="form-group">
							<label for="input-cash_take" class="col-sm-2 control-label">提现抽成（元）</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-cash_take" name="options[cash_take]" value="{$config['cash_take']|default=''}">
								<p class="help-block">
                                    (%-整数)百分比<br/>说明: 当提现比例设置为100映票等于1元时,提现抽成比例设置为10%,那么用户提现1000映票时,通过提现比例转换为10元,平台在从10元的基础上抽成10%,用户最终提现到账金额为9元</p>
							</div>
						</div>
                        
                        <div class="form-group">
                            <label for="input-cash_min" class="col-sm-2 control-label">提现最低额度（元）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_min" name="options[cash_min]" value="{$config['cash_min']|default=''}"> 
                                <p class="help-block">可提现的最小额度，低于该额度无法提现</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-cash_start" class="col-sm-2 control-label">每月提现期</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_start" name="options[cash_start]" value="{$config['cash_start']|default=''}" style="width:100px;display: inline-block;">
                                -
                                <input type="text" class="form-control" id="input-cash_end" name="options[cash_end]" value="{$config['cash_end']|default=''}" style="width:100px;display: inline-block;"> 
                                <p class="help-block">每月提现期限（日），不在时间段无法提现  例：10-15</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-cash_max_times" class="col-sm-2 control-label">每月提现次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_max_times" name="options[cash_max_times]" value="{$config['cash_max_times']|default='0'}"> 
                                <p class="help-block">每月可提现最大次数，0表示不限制</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-cash_tip" class="col-sm-2 control-label">温馨提示</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_tip" name="options[cash_tip]" value="{$config['cash_tip']|default=''}" maxlength='50'> 
                                <p class="help-block">提现页面下部提示,最多50字</p>
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-cash_tip_en" class="col-sm-2 control-label">Tips</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cash_tip_en" name="options[cash_tip_en]" value="{$config['cash_tip_en']|default=''}" > 
                                <p class="help-block">Reminder at the bottom of the withdrawal page, maximum 50 words</p>
                            </div>
                        </div>
                        
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="D">
                        <div class="form-group">
                            <label for="input-im_sdkappid" class="col-sm-2 control-label">腾讯云通信SdkAppId</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_sdkappid" name="options[im_sdkappid]" value="{$config['im_sdkappid']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-im_key" class="col-sm-2 control-label">腾讯云通信密钥</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_key" name="options[im_key]" value="{$config['im_key']|default=''}"> 
                            </div>
                        </div>
                        

                        <div class="form-group">
                            <label for="input-im_admin" class="col-sm-2 control-label">腾讯云通信账号管理员</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_admin" name="options[im_admin]" value="{$config['im_admin']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-im_full_group_id" class="col-sm-2 control-label">腾讯云通信在线成员广播大群群组ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_full_group_id" name="options[im_full_group_id]" value="{$config['im_full_group_id']|default=''}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label  class="col-sm-2 control-label"></label>
                            <div class="col-md-6 col-sm-10">
                                <p class="help-block">收费标准<a target="_blank" href="https://cloud.tencent.com/document/product/269/11673">参考文档</a></p>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="E">
						<div class="form-group">
                            <label for="input-chatserver" class="col-sm-2 control-label">聊天服务器地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-chatserver" name="options[chatserver]" value="{$config['chatserver']|default=''}">
                                <p class="help-block"> 格式：http://域名(:端口) 或者 http://IP(:端口)</p>
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-barrage_fee" class="col-sm-2 control-label">弹幕费用</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-barrage_fee" name="options[barrage_fee]" value="{$config['barrage_fee']|default=''}"> 
                                <p class="help-block">每条弹幕的价格钻石（整数）</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-userlist_time" class="col-sm-2 control-label">用户列表请求间隔(秒)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-userlist_time" name="options[userlist_time]" value="{$config['userlist_time']|default=''}"> <p class="help-block">直播间用户列表刷新间隔时间  注：不小于5s</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-conversa_time_min" class="col-sm-2 control-label">视频1V1通话最低时长</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-conversa_time_min" name="options[conversa_time_min]" value="{$config['conversa_time_min']|default='5'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}"> 
                                <p class="help-block">分钟  用户余额必须大于 规定时长的费用才能发起视频1V1通话.0表示不限制</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-tx_appid" class="col-sm-2 control-label">直播appid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_appid" name="options[tx_appid]" value="{$config['tx_appid']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_bizid" class="col-sm-2 control-label">直播bizid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_bizid" name="options[tx_bizid]" value="{$config['tx_bizid']|default=''}"> 
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-tx_push" class="col-sm-2 control-label">直播推流域名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_push" name="options[tx_push]" value="{$config['tx_push']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_pull" class="col-sm-2 control-label">直播播流域名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_pull" name="options[tx_pull]" value="{$config['tx_pull']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_push_key" class="col-sm-2 control-label">直播推流防盗链Key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_push_key" name="options[tx_push_key]" value="{$config['tx_push_key']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group" style="display:none;">
                            <label for="input-tx_acc_key" class="col-sm-2 control-label">直播低延迟Key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_acc_key" name="options[tx_acc_key]" value="{$config['tx_acc_key']|default=''}">
                                <p class="help-block"> 一般是 直播推流防盗链Key</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_api_key" class="col-sm-2 control-label">直播API鉴权key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_api_key" name="options[tx_api_key]" value="{$config['tx_api_key']|default=''}">
                                <p class="help-block">一般为直播推流防盗链Key</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-tx_appid" class="col-sm-2 control-label">注意：</label>
                            <div class="col-md-6 col-sm-10">
                                <p class="help-block" style="color:red;">1:确保配置直播信息的账号跟配置腾讯云IM的账号为同一账号,否则无法开播</p>
                                <p class="help-block" style="color:red;">2:TRTC生成流使用的是腾讯云IM应用的sdkAPPID和密钥</p>
                                <p class="help-block">3:APP用户通话时使用TRTC推流和播流</p>
                                <p class="help-block">4:TRTC付费参考:<a target="_blank" href="https://cloud.tencent.com/document/product/647/17157">腾讯云</a></p>
                                
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="F">
                        <div class="form-group">
                            <label for="input-match_voice" class="col-sm-2 control-label">匹配-语音价格</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-match_voice" name="options[match_voice]" value="{$config['match_voice']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_coin']}</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-match_voice_vip" class="col-sm-2 control-label">匹配-语音-VIP价格</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-match_voice_vip" name="options[match_voice_vip]" value="{$config['match_voice_vip']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_coin']}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-match_video" class="col-sm-2 control-label">匹配-视频价格</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-match_video" name="options[match_video]" value="{$config['match_video']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_coin']}</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-match_video_vip" class="col-sm-2 control-label">匹配-视频-VIP价格</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-match_video_vip" name="options[match_video_vip]" value="{$config['match_video_vip']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_coin']}</p>
                            </div>
                        </div>
                        


                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="G">
                        <div class="form-group">
                            <label for="input-agent_switch" class="col-sm-2 control-label">邀请开关</label>
                            <div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[agent_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['agent_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-agent_must" class="col-sm-2 control-label">邀请码必填</label>
                            <div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[agent_must]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['agent_must']" value="1">selected</eq>>开启</option>
                                </select>
                                <p class="help-block">开启后,必须填写邀请码才能进入APP</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-agent_one" class="col-sm-2 control-label">一级分成</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-agent_one" name="options[agent_one]" value="{$config['agent_one']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}"> 
                                <p class="help-block">%  用于下级用户充值时，平台奖励上级用户{$configpub['name_votes']}</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-agent_reward" class="col-sm-2 control-label">每邀请一个新人的奖励</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-agent_reward" name="options[agent_reward]" value="{$config['agent_reward']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_votes']}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-agent_daytimes" class="col-sm-2 control-label">每天可获取邀请奖励的次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-agent_daytimes" name="options[agent_daytimes]" value="{$config['agent_daytimes']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">当天超过次数不再享有邀请奖励 0表示不限制</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-agent_times" class="col-sm-2 control-label">可获取邀请奖励的总次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-agent_times" name="options[agent_times]" value="{$config['agent_times']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">超过总次数不再享有邀请奖励</p>
                            </div>
                        </div>
                        
                        
                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="H">

                        <div class="form-group">
                            <label for="input-im_limit" class="col-sm-2 control-label">免费私信条数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_limit" name="options[im_limit]" value="{$config['im_limit']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">0表示不限制,VIP用户无限制</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-im_coin" class="col-sm-2 control-label">每条私信价格</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-im_coin" name="options[im_coin]" value="{$config['im_coin']|default=''}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">
                                <p class="help-block">{$configpub['name_coin']}</p>
                            </div>
                        </div>
                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
					
					<!-- 云存储设置 -->
                    <div class="tab-pane" id="I">
						<div class="form-group">
                            <label for="input-cloudtype" class="col-sm-2 control-label">选择存储方式</label>
                            <div class="col-md-6 col-sm-10" id="cloudtype">
                                <label class="radio-inline"><input type="radio" value="1" name="options[cloudtype]" <in value="1" name="config['cloudtype']">checked="checked"</in>>七牛云存储</label>
                                <label class="radio-inline"><input type="radio" value="2" name="options[cloudtype]" <in value="2" name="config['cloudtype']">checked="checked"</in>>亚马逊存储</label>
                               
                            </div>
                        </div>
						<div id="cloudtype_1" class="cloudtype_hide <neq name="config['cloudtype']" value="1">hide</neq>">
                       
                        </div>
						<div id="cloudtype_2" class="cloudtype_hide <neq name="config['cloudtype']" value="2">hide</neq>" >
							<div class="form-group">
								<label for="input-aws_bucket" class="col-sm-2 control-label">亚马逊存储Bucket</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aws_bucket" name="options[aws_bucket]" value="{$config['aws_bucket']|default=''}">
								</div>
							</div>
							<div class="form-group">
								<label for="input-aws_region" class="col-sm-2 control-label">亚马逊存储region</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aws_region" name="options[aws_region]" value="{$config['aws_region']|default=''}">
								</div>
							</div>
							<div class="form-group">
								<label for="input-aws_hosturl" class="col-sm-2 control-label">亚马逊存储域名</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aws_hosturl" name="options[aws_hosturl]" value="{$config['aws_hosturl']|default=''}">
								</div>
							</div>
							<div class="form-group">
								<label for="input-aws_identitypoolid" class="col-sm-2 control-label">亚马逊角色标识</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-aws_identitypoolid" name="options[aws_identitypoolid]" value="{$config['aws_identitypoolid']|default=''}">
                                    <p class="help-block">APP端专用</p>
								</div>
							</div>
                        </div>
	
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
					<!-- 推荐设置 -->
					<div class="tab-pane" id="J">

						<div class="form-group">
							<label for="input-recommendinfo" class="col-sm-2 control-label">推荐弹框文案</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-recommendinfo" name="options[recommendinfo]" value="{$config['recommendinfo']|default=''}" maxlength='50'> 
                                <p class="help-block">推荐弹框文案信息,最多50字</p>
							</div>
						</div>
						
						<div class="form-group">
							<label for="input-recommendinfo_en" class="col-sm-2 control-label">Recommended pop-up copy</label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-recommendinfo_en" name="options[recommendinfo_en]" value="{$config['recommendinfo_en']|default=''}" > 
                                <p class="help-block">Recommended pop-up text information</p>
							</div>
						</div>
						
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
									{:lang('SAVE')}
								</button>
							</div>
						</div>
					</div>

                    <!-- 敏感词设置 -->
                    <div class="tab-pane" id="K">

                        <div class="form-group">
                            <label for="input-sensitive_words" class="col-sm-2 control-label">敏感词</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-sensitive_words" name="options[sensitive_words]" >{$config.sensitive_words|default=''}</textarea><p class="help-block">设置多个敏感字，请用英文状态下逗号隔开</p>
                            </div>
                        </div>
                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <!-- 公会设置 -->
                    <div class="tab-pane" id="L">

                        <div class="form-group">
                            <label for="input-family_switch" class="col-sm-2 control-label">公会开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[family_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['family_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-family_member_divide_switch" class="col-sm-2 control-label">公会长修改成员分成比例是否管理员审核</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[family_member_divide_switch]">
                                    <option value="0">否</option>
                                    <option value="1" <eq name="config['family_member_divide_switch']" value="1">selected</eq>>是</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                        
                    </div>

                    <!-- openinstall设置 -->
                    <div class="tab-pane" id="M">

                        <div class="form-group">
                            <label for="input-openinstall_switch" class="col-sm-2 control-label">openinstall开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[openinstall_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['openinstall_switch']" value="1">selected</eq>>开启</option>
                                </select>
                                <p class="help-block">该功能打开时，用户下载APP，注册账号后，会自动建立上下级邀请关系</p>
                                <p class="help-block">该功能关闭后，用户下载APP后，需要通过填写邀请码的方式建立上下级邀请关系</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-openinstall_appkey" class="col-sm-2 control-label">openinstall AppKey</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-openinstall_appkey" name="options[openinstall_appkey]" value="{$config['openinstall_appkey']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
					
					<!-- 鉴黄拉黑设置(腾讯云) -->
                    <div class="tab-pane" id="N">
						<div class="form-group">
                            <label for="input-block_count" class="col-sm-2 control-label">拉黑次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-block_count" name="options[block_count]" value="{$config['block_count']|default='0'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}"> 0表示不限制(代表永久拉黑),这里填写的次数要跟下面时间相辅相成;当填写为0时则不走下面时间的配置信息;当用户被拉黑的次数大于当前配置的次数时将默认永久拉黑
                            </div>
                        </div>
						
						<div class="form-group">
                            <label for="input-block_time" class="col-sm-2 control-label">拉黑时间配置</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-block_time" name="options[block_time]" value="{$config['block_time']|default='0'}"> 单位:分钟, 0代表永久拉黑;时间与时间之前用英文,隔开。例如:10,30,0
                            </div>
                        </div>
						
						
	
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- 任务中心 -->
                    <div class="tab-pane" id="O">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">新手任务</label>
                            <div class="col-md-6 col-sm-10">
                                
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-up_avatar_coin" class="col-sm-2 control-label">上传头像</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-up_avatar_coin" name="options[up_avatar_coin]" value="{$config['up_avatar_coin']|default='0'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">奖励{$configpub['name_coin']}
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-user_auth_coin" class="col-sm-2 control-label">实名认证</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-user_auth_coin" name="options[user_auth_coin]" value="{$config['user_auth_coin']|default='0'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">奖励{$configpub['name_coin']}
                            </div>
                        </div>

                        <!--<div class="form-group">
                            <label for="input-anchor_auth_coin" class="col-sm-2 control-label">主播认证</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-anchor_auth_coin" name="options[anchor_auth_coin]" value="{$config['anchor_auth_coin']|default='0'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">奖励{$configpub['name_coin']}
                            </div>
                        </div>-->

                        <div class="form-group">
                            <label for="input-update_info_coin" class="col-sm-2 control-label">完善资料</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-update_info_coin" name="options[update_info_coin]" value="{$config['update_info_coin']|default='0'}" onkeyup="if(this.value.replace(/\D/g,'')!=''){this.value=parseInt(this.value.replace(/\D/g,''))}else{this.value='0'}">奖励{$configpub['name_coin']}
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">每日任务</label>
                            <div class="col-md-6 col-sm-10">
                                
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-dailytask_switch" class="col-sm-2 control-label">每日任务开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control w-80" name="options[dailytask_switch]">
                                    <option value="0">关闭</option>
                                    <if condition="isset($config['dailytask_switch'])">
                                        <option value="1" <eq name="config['dailytask_switch']" value="1">selected</eq>>开启</option>
                                    </if>
                                </select>
                            </div>
                        </div>

                        <!--<div class="form-group">
                            <label for="input-voice_call_term" class="col-sm-2 control-label">语音通话</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(分钟)：<input type="text" class="form-control" id="input-voice_call_term" name="options[voice_call_term]" value="{$config['voice_call_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-voice_call_coin" name="options[voice_call_coin]" value="{$config['voice_call_coin']|default='0'}">
                                
                                <br />注：切记!填写的条件和奖励一定要填写整数;例: 当用户语音通话时长达到X分钟时奖励X钻石
                            </div>
                        </div>-->

                        <div class="form-group">
                            <label for="input-video_call_term" class="col-sm-2 control-label">视频通话</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(分钟)：<input type="text" class="form-control" id="input-video_call_term" name="options[video_call_term]" value="{$config['video_call_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-video_call_coin" name="options[video_call_coin]" value="{$config['video_call_coin']|default='0'}">
                                
                                <br />注：切记!填写的条件和奖励一定要填写整数;例: 当用户视频通话时长达到X分钟时奖励X钻石
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-open_live_term" class="col-sm-2 control-label">开启直播</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(分钟)：<input type="text" class="form-control" id="input-open_live_term" name="options[open_live_term]" value="{$config['open_live_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-open_live_coin" name="options[open_live_coin]" value="{$config['open_live_coin']|default='0'}">
                                <br />注：切记!填写的条件可以为整数也可以保留一位小数；奖励一定要填写整数;例: 当主播每天开播满足X分钟可获得奖励X钻石
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-publish_dynamic_term" class="col-sm-2 control-label">发布动态</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(条)：<input type="text" class="form-control" id="input-publish_dynamic_term" name="options[publish_dynamic_term]" value="{$config['publish_dynamic_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-publish_dynamic_coin" name="options[publish_dynamic_coin]" value="{$config['publish_dynamic_coin']|default='0'}">
                                <br />注：切记!填写的条件和奖励一定要填写整数;例: 当用户每天发布动态超过X条，奖励X钻石
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-like_dynamic_term" class="col-sm-2 control-label">点赞动态</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(条)：<input type="text" class="form-control" id="input-like_dynamic_term" name="options[like_dynamic_term]" value="{$config['like_dynamic_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-like_dynamic_coin" name="options[like_dynamic_coin]" value="{$config['like_dynamic_coin']|default='0'}">
                                <br />注：切记!填写的条件和奖励一定要填写整数;例: 当用户每天点赞动态超过X条，奖励X钻石
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-send_privatemsg_term" class="col-sm-2 control-label">发送私信</label>
                            <div class="col-md-6 col-sm-10"><br />
                                条件(人)：<input type="text" class="form-control" id="input-send_privatemsg_term" name="options[send_privatemsg_term]" value="{$config['send_privatemsg_term']|default='0'}"><br />
                                奖励(钻石)：<input type="text" class="form-control" id="input-send_privatemsg_coin" name="options[send_privatemsg_coin]" value="{$config['send_privatemsg_coin']|default='0'}">
                                <br />注：切记!填写的条件和奖励一定要填写整数;例:用户每日发送私信对象X人可获得奖励X钻石
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="P">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">新手任务</label>
                            <div class="col-md-6 col-sm-10">

                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script>
(function(){
	//云存储切换
	$("#cloudtype label.radio-inline").on('click',function(){
			var v=$("input",this).val();
	
			
			$(".cloudtype_hide").addClass('hide');
			
			$("#cloudtype_"+v).removeClass('hide');
		
	})

	
    $("#cdn label").on('click',function(){
        var v_d=$("input",this).attr('disabled');
        if(v_d=='disabled'){
            return !1;
        }
        var v=$("input",this).val();
        var b=$("#code_switch_"+v);
        $(".cdn_bd").hide();
        b.show();
    })
    
})()
</script>
</body>
</html>
